package com.bjwl.service;

import com.bjwl.pojo.Admin;
import com.bjwl.utils.PageBean;

import java.util.List;

/**
 * @Author: czc
 * @Date:Create：in 2020/4/10 14:18
 * @Description:
 * @Modified By：dzx 添加登录
 * @Version: 1.0
 */
public interface AdminService {
    Integer ByIdUpdateuser(Admin admin);
    void addAdmin(Admin admin);
    void deleteAdmin(Integer id);
    PageBean<Admin> findAllAdmin(Integer pageNum, String username);
    /**
     * 根据name与密码查询
     * @param admin
     * @return
     */
    Admin findAdminByUserNameAndPassWord(Admin admin);

    Admin findAdminById(Admin admin);

    void adminState(Admin admin);

    Integer findAllAdminTotalRecord();

    List<Admin> findAdminByUserName(String userName);
}
